﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Text;
using Kiss.Domain;
using Kiss.Domain.OrderDataService;

namespace Kiss.Service
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class OrderService : IOrderService
    {
        private OrderDomain orderDomain = new OrderDomain();

        public List<Customer> GetCustomersByCity(string city)
        {
            return orderDomain.GetCustomersByCity(city);
        }

        public Customer GetCustomer(string id)
        {
            return orderDomain.GetCustomer(id);
        }

        public void UpdateCustomer(Customer customer)
        {
            orderDomain.UpdateCustomer(customer);
        }
    }
}
